package com.share.service.impl;

import com.share.domain.OpenIdResult;
import com.share.result.JSONResult;
import com.share.service.WechatRegisterService;
import com.share.template.WechatLoginTemplate;
import org.aspectj.lang.annotation.After;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class WechatRegisterServiceImpl implements WechatRegisterService {
    @Autowired
    private WechatLoginTemplate wechatLoginTemplate;
    @Override
    public JSONResult<OpenIdResult> getOpenId(String code) {
        OpenIdResult openId = wechatLoginTemplate.getOpenId(code);
        return JSONResult.success(openId);
    }




}
